<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改重要客户')" />
	<th:block th:include="include :: select2-css" />
    <th:block th:include="include :: summernote-css" />
</head>
<body>
    <div class="form-content">
        <form class="form-horizontal" id="form-importantCustomer-edit" th:object="${importantCustomerInfo}">
            <h4 class="form-header h4">基本信息</h4>
            <input name="id" autocomplete="off"  class="form-control" type="hidden"   th:field="*{id}">
            <!--<div class="row">
            	<div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>创建人：</label>
                        <div class="col-sm-8">
                            <input name="createBy" autocomplete="off" placeholder="请输入创建人" class="form-control" type="text"  th:field="*{createBy}" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                     <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>创建时间：</label>
                        <div class="col-sm-8">
                            <input name="createTime" autocomplete="off" placeholder="请输入创建时间" class="form-control" type="text"  th:field="*{createTime}" readonly>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>更新人：</label>
                        <div class="col-sm-8">
                            <input name="updateBy" autocomplete="off" placeholder="请输入更新人" class="form-control" type="text"  th:field="*{updateBy}" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>更新时间：</label>
                        <div class="col-sm-8">
                            <input name="updateTime" autocomplete="off" placeholder="请输入更新时间" class="form-control" type="text"  th:field="*{updateTime}" readonly>
                        </div>
                    </div>
                </div>
            </div>-->
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>客户名称：</label>
                        <div class="col-sm-8">
                            <input name="customerName" autocomplete="off" placeholder="请输入客户名称" class="form-control" type="text"  th:field="*{customerName}" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>重要等级：</label>
                        <div class="col-sm-8">
                            <input name="importantLevel" autocomplete="off" placeholder="请输入重要等级" class="form-control" type="text"  th:field="*{importantLevel}">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>联系方式：</label>
                        <div class="col-sm-8">
                            <input name="telephoneNumber" autocomplete="off" placeholder="请输入联系方式" class="form-control" type="tel"  th:field="*{telephoneNumber}" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label"><span style="color: red; ">*</span>地理坐标位置：</label>
                        <div class="col-sm-8">
                            <input name="gisLocation" autocomplete="off" placeholder="请输入地理坐标位置" class="form-control" type="text"  th:field="*{gisLocation}">
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">是否有效：</label>
                        <div class="col-sm-8">
                            <div class="input-group " style="width: 100%">
                                <select name="isValid" class="form-control m-b" th:with="type=${@dict.getType('biz_is_valid')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isValid}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">删除标志：</label>
                        <div class="col-sm-8">
                            <div class="input-group " style="width: 100%">
                                <select name="isDeleted" class="form-control m-b" th:with="type=${@dict.getType('biz_is_delete')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isDeleted}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <h4 class="form-header h4">其他信息</h4>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-xs-2 control-label">备注：</label>
                        <div class="col-xs-10">
                            <textarea name="remark" autocomplete="off"   class="form-control" rows="3">[[*{remark}]]</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: select2-js" />
    <th:block th:include="include :: summernote-js" />
	<script type="text/javascript">
        var prefix = ctx + "biz/importantCustomer";
        
        function submitHandler() {
	        if ($.validate.form()) {
	        	var data = $("#form-importantCustomer-edit").serializeArray();
	        	$.operate.saveTab(prefix + "/edit", data);
	        }
	    }

    </script>
</body>
</html>